/**
 * This file is part of Sonedyan.
 * 
 * Sonedyan is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation;
 * either version 3 of the License, or (at your option) any
 * later version.
 *
 * Sonedyan is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public
 * License along with Octave; see the file COPYING.  If not
 * see <http://www.gnu.org/licenses/>.
 * 
 * Copyright (C) 2009-2012 Jimmy Dubuisson <jimmy.dubuisson@gmail.com>
 */

package org.unige.mpej.eckmann.sonedyan.enron.bean;

import javax.mail.Message.RecipientType;
import org.unige.mpej.eckmann.sonedyan.bean.Edge;

/**
 * abstract link that might materialize as an edge in the social graph
 */
public class Link extends Edge
{
	private RecipientType type;
	
	/**
	 * default constructor
	 */
	public Link(){}
	
	public RecipientType getType()
	{
		return type;
	}

	public void setType(RecipientType type)
	{
		this.type = type;
	}
	
	/**
	 * overridden toString method to be used for graph export
	 */
	public String toString()
	{
		return this.getLinkId().replace('<', '_').replace('>', '_') + "/" + this.getFromActorId() + "/" + this.getToActorId();
	}
	
}
